package com.cc.controller;

import com.cc.service.ConfirmOrderService;
import com.dy.cc.confirmOrder;
import com.kaoshi.common.config.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("order")
public class ConfirmOrderController {

    @Autowired
    private ConfirmOrderService confirmOrderService;

    @RequestMapping("findAll")
    public Result findAll(confirmOrder confirmOrder,Integer uid) {
        List<confirmOrder> confirmOrderList = confirmOrderService.findAll(confirmOrder,uid);
        return Result.ok(confirmOrderList);

    }




}
